package com.example.app.service.impl;

import com.example.app.annotation.MonitorTime;
import com.example.app.pojo.User;
import com.example.app.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl implements UserService {
    @Override
    public User getUser() {
        return User.builder().name("teacher").age(18).build();
    }

    @Override
    public User setUser(User user) {
        return null;
    }

    @Override
    public String mark() {
        try {
            Thread.sleep(1L);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return "Teacher";
    }
}
